package com.blank.javawebexam.pojo;

import com.blank.javawebexam.utils.DateFormatUtil;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * t_student 对应类
 * @author blank
 */
@Data
public class Student implements Serializable {
    private Integer id;

    private String name;

    private Date birthday;

    private String sex;

    private Hobby hobby;

    private static final long serialVersionUID = 1L;

    public String getBirthday() {
        return DateFormatUtil.formatter(birthday);
    }
}